/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dcds2;

import java.sql.Connection;
import java.util.ResourceBundle;
/**
 *
 * @author Mesan
 */
public abstract class ConnectionFactory {
    public static String driver, url, username, password;

    public static ConnectionFactory getFactory()
    {
        //ResourceBundle settings = ResourceBundle.getBundle("introse");
        driver = ("com.mysql.jdbc.Driver");
        url = ("jdbc:mysql://localhost/dcds");
        username = ("root");
        password = ("introse");

        return new ConnectionFactoryImpl(driver, url, username, password);
    }

    public abstract Connection getConnection();
}
    

 
